import request from "@/utils/request";
// http://192.168.119.77:8101/studentSentenceSoundRecord/savePronounce?sentence_id=181&content=I'm Mike.&is_child=0&accent=1&key=1756&timestamp=1615444346156&sign=10150f3ab418986ddc3656524d3268bdbce38c77d8193a2a8a8a903c002df029
//同步课文录音
export function postParagraphRecord(params, data) {
  return request({
    url: `/studentSentenceSoundRecord/savePronounce`,
    method: "post",
    params,
    data,
  });
}

// 获取章节列表
export function getUnitList(params, data) {
  return request({
    url: `/englishTextStrange/findUnitTestVO`,
    method: "get",
    params,
    data,
  });
}
// 学习获取课文
export function getStudyTextList(params, data) {
  return request({
    url: `/englishTextStrange/findTextSentenceList`,
    method: "get",
    params,
    data,
  });
}
// 课文本
export function getTextBook(params, data) {
  return request({
    url: `/englishTextStrange/getSentenceTextBook`,
    method: "get",
    params,
    data,
  });
}
// 获取测试
export function getTestPaper(params, data) {
  return request({
    url: `/englishTestSentence/getSentenceText`,
    method: "post",
    params,
    data,
  });
}
// 测试提交录音
export function postTestParagraphRecord(params, data) {
  return request({
    url: `/studentSentenceSoundRecord/saveTestPronounce`,
    method: "post",
    params,
    data,
  });
}
// 保存测试分数
export function postTestScore(params, data) {
  return request({
    url: `/englishTestSentence/addTextSentenceTest`,
    method: "get",
    params,
    data,
  });
}
// 查询复习个数
export function getTextReviewNum(params, data) {
  return request({
    url: `/englishTextStrange/searchReviewSentenceNumList`,
    method: "post",
    params,
    data,
  });
}
// 获取复习课文
export function getTextReview(params, data) {
  return request({
    url: `/englishTextStrange/findTextList`,
    method: "post",
    params,
    data,
  });
}
// 接受复习校验结果
export function postReviewRecord(params, data) {
  return request({
    url: `/studentSentenceSoundRecord/saveReviewPronounce`,
    method: "post",
    params,
    data,
  });
}
// 再学一遍
export function setStudyAgain(params, data) {
  return request({
    url: `/englishTextStrange/beStudying`,
    method: "get",
    params,
    data,
  });
}
